package com.yzt.message.adapter;

import android.widget.TextView;

import com.chad.library.adapter.base.BaseQuickAdapter;
import com.chad.library.adapter.base.module.LoadMoreModule;
import com.chad.library.adapter.base.module.UpFetchModule;
import com.chad.library.adapter.base.viewholder.BaseViewHolder;
import com.yzt.zhuju.network.entity.message.InteractiveMessagesData;
import com.yzt.zhuju.widget.tuiview.TUITextView;
import com.yzt.message.R;
import com.yzt.plugin_widget.RoundImageView;

/**
 * 作者：bobwang
 * 创建时间：2023-11-19 22:34:18
 * 描述：互动消息
 */
public class InteractiveMessagesAdapter extends BaseQuickAdapter<InteractiveMessagesData, BaseViewHolder> implements
        LoadMoreModule, UpFetchModule {

    public InteractiveMessagesAdapter() {
        super(R.layout.item_interactive_msg);
    }

    @Override
    protected void convert(BaseViewHolder helper, InteractiveMessagesData item) {
        RoundImageView img_header = helper.getView(R.id.img_header);
        TextView tv_user_name = helper.getView(R.id.tv_user_name);
        TUITextView tv_content = helper.getView(R.id.tv_content);
        RoundImageView img_cover = helper.getView(R.id.img_cover);
        tv_content.setText("赞了你的动态 10:34");

//        if (result.getPicture() != null && !result.getPicture().equals("")) {
//                Glide.with(getContext()).load(result.getPicture()).into(roundImage);
//                roundImage.setVisibility(View.VISIBLE);
//            } else {
//                roundImage.setVisibility(View.GONE);
//            }
    }
}
